package example.chapter1
{
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.text.TextField;

	public class Helloworld extends Sprite
	{
		public function Helloworld()
		{
			super();
			
			this.addEventListener(Event.ADDED_TO_STAGE, this.init);
		}
		
		protected function init(e:Event) :void {
			var tf:TextField = new TextField();
			tf.text = "Helloworld";
			this.addChild(tf);
		}		
	}
}